﻿using System;
using System.Collections.Generic;

namespace YummyGame.Framework
{
    public class ActionBuilder_delay : ActionBuilder
    {
        public override SkillActionPrototype Build(SkillDescriptorField field)
        {
            SkillActionPrototype_delay delay = Pools.GetSkillPrototype<SkillActionPrototype_delay>().Get();
            delay.time = ParseExpression(field, SkillKeyword.effect_delay_action);
            delay.delayAction = ParseChildAction(field, SkillKeyword.effect_delay_action);
            return delay;
        }
    }
}
